package cn.com.jit;

public class FileProcessorFactory {

    public static FileProcessor getProcessor(String extension) {
        switch (extension) {
            case "java":
                return new JavaFileProcessor();
            case "xml":
                return new XmlFileProcessor();
            default:
                return new UnsupportedFileProcessor();
        }
    }
}
